You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Max number of pooled connections from one client to one server is limited
by -max_connection_pool_size.
Note the number is not same as “max number of connections”.
New connections are always created when there’s no idle ones in the pool;
the returned connections are closed immediately when the pool already
has max_connection_pool_size connections.
If there are too many connections, the connection will be closed immediately
once the initial open_load_stream rpc has finished. Causing the stream
to be closed in the meantime. Subsequent writes to the stream will encounter
"StreamWrite failed, err=22".
This PR changes brpc connection type to "single" for streaming connections.
And set brpc connection group to "streaming" to distinguish connections.
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Previously, we use "pooled" connection to distinguish streaming connections
with non-streaming connections.
According to brpc docs connection-type:
If there are too many connections, the connection will be closed immediately
once the initial
open_load_streamrpc has finished. Causing the streamto be closed in the meantime. Subsequent writes to the stream will encounter
"StreamWrite failed, err=22".
This PR changes brpc connection type to
"single"for streaming connections.And set brpc connection group to
"streaming"to distinguish connections.Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...